package xuegao.study.mall.repo.dao.ums;

import org.apache.ibatis.annotations.Param;
import xuegao.study.mall.common.model.ums.UmsResource;

import java.util.List;
import java.util.Map;

public interface UmsResourceDao {

    List<UmsResource> selectList(Map<String, Object> params);

    List<UmsResource> getResourceListByRoleId(@Param("roleId") Long roleId);

    int insertResource(UmsResource resource);

    int updateResource(UmsResource resource);

    int deleteById(@Param("id") Long id);

    List<UmsResource> getResourceList(@Param("adminId") Long adminId);
}
